<div id="maintainanceTaskDetailModel" class="modal fade" role="dialog"
     aria-labelledby="maintainanceTaskDetailModelLabel" aria-hidden="true">
    <div class="modal-dialog modal-xl">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="maintainanceTaskDetailModelLabel">
                    <span>
                        <vc:i18n name="任务详情" namespace="maintainanceTaskDetail"></vc:i18n>
                    </span>
                </h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox ">
                            <div class="table-responsive" style="margin-top:15px">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="设备名称" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="计划名称" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="保养标准" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="计划保养人" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="保养人" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span><br/>
                                            <span>
                                                <vc:i18n name="开始/结束时间" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="实际保养时间" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="实际保养人" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="任务状态" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="保养情况" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="保养照片" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="创建时间" namespace="maintainanceTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="操作" namespace="maintainanceTaskDetails"></vc:i18n>
                                            </span>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr v-for="maintainanceTask in maintainanceTaskDetailInfo.taskDetails">
                                        <td class="text-center">{{maintainanceTask.machineName}}</td>
                                        <td class="text-center">{{maintainanceTask.planName}}</td>
                                        <td class="text-center">{{maintainanceTask.standardName}}</td>
                                        <td class="text-center">{{maintainanceTask.planUserName}}</td>
                                        <td class="text-center">
                                            {{maintainanceTask.planInsTime}}<br/>{{maintainanceTask.planEndTime}}
                                        </td>
                                        <td class="text-center">{{maintainanceTask.inspectionTime ?
                                            maintainanceTask.inspectionTime : '-'}}
                                        </td>
                                        <td class="text-center">{{maintainanceTask.actUserName ?
                                            maintainanceTask.actUserName : '-'}}
                                        </td>
                                        <td class="text-center">{{maintainanceTask.stateName}}</td>
                                        <td class="text-center text-primary">
                                            {{maintainanceTask.description ? maintainanceTask.description : '-'}}
                                        </td>
                                        <td class="text-center" style="white-space: nowrap;">
                                            <span v-for="_photo in maintainanceTask.photos">
                                                    <img style="width: 60px; height: 60px;" v-bind:src="_photo.url"
                                                         v-on:click="openFile(_photo)"/>
                                            </span>
                                        </td>
                                        <td class="text-center">{{maintainanceTask.createTime}}</td>
                                        <td class="text-center">
                                            <a :href="'/#/pages/property/maintainanceTaskDetailView?taskDetailId='+maintainanceTask.taskDetailId"
                                               target="_blank">详情</a>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                                <!-- 分页 -->
                                <vc:create namespace="maintainanceTaskDetail" path="frame/paginationPlus"></vc:create>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="common/viewMap"></vc:create>
    <vc:create path="common/viewImage"></vc:create>
</div>